import json
import jsonpath
import requests
#现金调整
session=requests.session()
params={"name":"柯棣","password":"d636db2fa5ce5895863e3e98b1b8d7c7","login_type":"backend","returnUrl":"http://test15.yishou.com/newos/fund/money-adjust","is_pc":"1"}
res=session.post("http://erp5.yishou.com:8088/erp/Admin/login",data=params)
text=res.text
json_res=json.loads(text)
print(json_res)
token=jsonpath.jsonpath(json_res,"$..token")[0]
print(token)
session.headers["token"]=token
params={"only_pingan":False,"message":"12","user_ids":"5153751","moneys":"10","source":"12","message_description":"21"}
res=session.post('http://test15.yishou.com/os/outCash/addMoney',json=params)
text=res.text
print(text)
